package com.qiangqiang.task.server.mapper;

import com.qiangqiang.task.server.entity.Message;
import com.qiangqiang.task.server.mapper.provider.FollowProvider;
import com.qiangqiang.task.server.mapper.provider.MessageProvider;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface MessageMapper {
    @InsertProvider(type = MessageProvider.class, method = "insertMessage")
    int insertMessage(@Param("message") Message message);

    @SelectProvider(type = MessageProvider.class, method = "queryPageMessageByToId")
    List<Message> queryPageMessageByToId(@Param("toId") long toId);
}
